#define _CRT_SECURE_NO_WARNINGS 1
#include"Heap.h"

int main()
{
	HP hp;
	HPInit(&hp);
	HPDestroy(&hp);
	int arr[] = { 56,2,8,7,4,9,66,20 };
	for (int i = 0;i < sizeof(arr) / sizeof(int);i++)
	{
		HPPush(&hp,arr[i]);
	}
	while (!HPEmpty(&hp))
	{
		printf("%d  ", HPTop(&hp));
		HPPop(&hp);
	}

	return 0;
}